﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PlanDetailSum_Month.ascx.cs"
    Inherits="Thksoft.UserCotrols.PlanDetailSum_Month" %>
<script type="text/javascript">
    $(function () {
        window.PrintEventArry[0].Html = $("#<%=this.print_div.ClientID %>").html();
    });

    function projectShow_sumMonth(proId) {
        var year = $("#<%=HiddenField4.ClientID %>").val();
        var month = $("#<%=HiddenField5.ClientID %>").val();
        if (proId == 0) {
            return;
        }
        var option = {};
        option.Url = "/Module/ProjectDetails/BankList_ProjectDetails.aspx?ISTRUE=SUM_MONTH&PRO_ID=" + proId + "&YEAR=" + year + "&MONTH=" + month;
        option.Area = ['850px', '500px'],
        option.Title = "月资金计划申请表_银行流水详情";
        top.MessageBox.Load(option);
    }
</script>
<asp:HiddenField ID="HiddenField3" runat="server" />
<asp:Panel ID="Panel1" runat="server">
    <table runat="server" id="print_div" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="text-align: center; font-size: 16px; font-weight: bold; height: 30px;">月资金计划申请表（
                <asp:Label ID="lblyear" runat="server" />
                ）
            </td>
        </tr>
        <tr>
            <td>
                <div style="float: left; width: 100%;">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                        <tr>
                            <td style="width: 150px; padding-right: 3px; text-align: right;">填报单位：
                            </td>
                            <td style="text-align: left; padding-left: 3px;">
                                <asp:Label ID="lbldw" runat="server" />
                            </td>
                            <td></td>
                            <td style="width: 150px;">金额单位：元
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <style>
                    .cont_list tr td.left {
                        text-align: left;
                        padding: 0 10px;
                        text-indent: 0px;
                    }

                    .cont_list tr td.right {
                        text-align: right;
                        padding: 0 10px;
                    }
                </style>
                <asp:GridView ID="gvMonthFunds" runat="server" Width="100%" CssClass="cont_list"
                    EmptyDataText="没有查找到您要的数据" AutoGenerateColumns="False" OnRowDataBound="gvMonthFunds_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="编号" HeaderStyle-Width="3%" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:HiddenField runat="server" ID="HiddenField1" Value='<%#Eval("IF_DETAILS") %>' />
                                <asp:HiddenField runat="server" ID="HiddenField2" Value='<%#Eval("DETAILS_CODE") %>' />
                                <asp:Label ID="lblProID" runat="server" Text='<%#Eval("n_proid") %>'></asp:Label>
                                <asp:Label ID="lbltype" runat="server" Text='<%#Eval("n_type") %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="c_proname" HeaderText="项目名称" ItemStyle-Width="20%" ItemStyle-CssClass="left" />
                        <asp:TemplateField HeaderText="上月止累计资金计划" ItemStyle-CssClass="right" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_SYAMOUNT"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="上月止累计发生额" ItemStyle-CssClass="right" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_USEAMOUNT"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="本月资金计划" ItemStyle-CssClass="right" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("n_amount1"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="本月资金计划审批金额" ItemStyle-CssClass="right" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("n_amount"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="本月资金计划周累计审批金额" ItemStyle-CssClass="right" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_AMOUNT_WEEK"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="本月资金计划周累计支付金额" ItemStyle-CssClass="right" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_USEAMOUNT_WEEK"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="流入(出)率" ItemStyle-CssClass="right" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#Eval("N_AMOUNTPROBABILITY")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="n_amount" HeaderText="本月资金计划" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-Width="12%" />
                        <asp:BoundField DataField="N_AMOUNT2" HeaderText="本月资金计划审批金额" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-Width="12%" />--%>
                        <asp:BoundField DataField="C_REMARK2" HeaderText="本月财务资产部审批意见" />
                        <asp:TemplateField HeaderText="流水详情" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <img <%# new BLL.ApplyPlanVerificationBll().IfDetails(Eval("N_TYPE"))?"":"class='hide'" %> src="/Images/XiangXi.png" style="width: 16px; height: 16px;"
                                onclick='projectShow_sumMonth(<%#Eval("N_PROID") %>);' title="查看详细" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        没有你所查询的数据
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="text-align: left; padding-left: 5px; height: 30px;">编制依据及事由：
                <asp:Label ID="lblBzyj" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="text-align: center;">
                <input type="hidden" runat="server" id="hidId" />
                申请人：<asp:Label ID="lblUser" runat="server" />
                &nbsp;&nbsp;&nbsp; &nbsp;申请时间：
                <asp:Label ID="lblTime" runat="server" /><input type="hidden" runat="server" id="Hidden1" />
                &nbsp;&nbsp;&nbsp; &nbsp;
            </td>
        </tr>
    </table>
    <div>
        <asp:HiddenField ID="HiddenField4" runat="server" />
        <asp:HiddenField ID="HiddenField5" runat="server" />
    </div>
</asp:Panel>